package booksys.login;

import org.apache.ibatis.annotations.Select;

public interface LoginDao {
    @Select("select count(*) from manager where ma_id = #{u_id} and ma_pwd = #{u_pwd}")
    int findManagerCountByIdAndPwd(LoginDto dto);

    @Select("select count(*) from student where st_id = #{u_id} and st_pwd = #{u_pwd}")
    int findStudentCountByIdAndPwd(LoginDto dto);

}
